package edu.sctu.practice.class02.shuqiqi.assign.assign03.One;

/**
 * Created by admin on 2015/11/4.
 */
public class Main {
    public static void main(String[] args) {

        GeometricObject circle = new Circle("Red", 4);
        System.out.println("圆");
        System.out.println("颜色：" + circle.color + "\n半径：" + circle.toString());
        circle.findArea();
        circle.findPerimeter();

        GeometricObject rectangle = new Rectangle("blue", 4, 6);
        System.out.println("矩形");
        System.out.println("颜色：" + rectangle.color + "\n" + rectangle.toString());
        rectangle.findPerimeter();
        rectangle.findArea();
    }
}


